const http = ({
                type = "BA10TA81wangning",
                page = 1,
                size = 10
              } = {}) => {
  return new Promise((resolve, reject) => {
    $.ajax({
      type: "GET",
      url: `https://3g.163.com/touch/reconstruct/article/list/${type}/${(page - 1) * size}-${size}.html`,
      dataType: "jsonp",
      jsonpCallback: "artiList",
      success(res) {
        resolve(res)
      },
      error(e) {
        reject(e)
      }
    })
  })
}


export default http


